<?
    use_javascript('classes/page/SpiderResultPage.class.js');
    use_javascript('classes/form/EditForm.class.js');
    use_javascript('classes/view/popup/PopupBox.class.js');
    use_javascript('classes/view/list/ResultTable.class.js');
?>
<div class="hidden" id="ajaxEditHandlerUrl"><?= url_for('edit_spider_result_ajax') ?></div>
<div class="hidden" id="refreshTableHandlerUrl"><?= url_for('refresh_table_ajax') ?></div>
<div class="hidden" id="newAjaxHandlerUrl"><?= url_for('new_spider_result_ajax') ?></div>
<div class="hidden" id="ajaxShowHandlerUrl"><?= url_for('show_spider_result_ajax') ?></div>
<h1>SpiderResults List</h1>

<table id="resultTable">
  <thead>
    <tr>
      <th>Spider result</th>
      <th>Page content</th>
      <th>Editing</th>
    </tr>
  </thead>
  <tbody>
    <? include_partial('indexResult', array('spiderResults' => $spiderResults)) ?>
  </tbody>
</table>

<a id="linkNew" href="<?= url_for('spider_result_form/new') ?>">New</a>
<div class="overlay" id="overlay">
  <div class="editor_popup" id="editorPopup"></div>
</div>